exports.models={
	user: {
		Init: function(isFromObject,object) {
			if (isFromObject) {
				this.calc_full_name="";
				if (this.first_name) this.calc_full_name+=this.first_name;
				if (this.last_name) {
					if (this.calc_full_name) this.calc_full_name+=" ";
					this.calc_full_name+=this.last_name;
				}
				this.no_roles=(this.Site.sql.execute_and_fetch_one("users/has_roles",{user_id:this.id}).cnt==0)?1:0;
			}
		}
	}
}
